package com.nanterre.annuaire.model;

import com.nanterre.annuaire.bd.BDInteraction;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author illamhat
 */
public class Diplome extends ElementAnnuaire{
    private int fidResponsable;
    private String nomResponsable;
    private String prenomResponsable;
    private int fidComposante;
    private int fidMention;
    private int fidTypeDiplome;
    private int effectif;
    private Date dateCreation;
    private Date dateModification;
    private String codeLmd2;
    

    public Diplome() {
        super();
    }

    public String getNomResponsable() {
        return nomResponsable;
    }

    public void setNomResponsable(String nomResponsable) {
        this.nomResponsable = nomResponsable;
    }

    public String getPrenomResponsable() {
        return prenomResponsable;
    }

    public void setPrenomResponsable(String prenomResponsable) {
        this.prenomResponsable = prenomResponsable;
    }

    public String getCodeLmd2() {
        return codeLmd2;
    }

    public Date getDateCreation() {
        return dateCreation;
    }

    public Date getDateModification() {
        return dateModification;
    }

    public int getEffectif() {
        return effectif;
    }

    public int getFidComposante() {
        return fidComposante;
    }

    public int getFidMention() {
        return fidMention;
    }

    public int getFidResponsable() {
        return fidResponsable;
    }

    public int getFidTypeDiplome() {
        return fidTypeDiplome;
    }

    public void setCodeLmd2(String codeLmd2) {
        this.codeLmd2 = codeLmd2;
    }

    public void setDateCreation(Date dateCreation) {
        this.dateCreation = dateCreation;
    }

    public void setDateModification(Date dateModification) {
        this.dateModification = dateModification;
    }

    public void setEffectif(int effectif) {
        this.effectif = effectif;
    }

    public void setFidComposante(int fidComposante) {
        this.fidComposante = fidComposante;
    }

    public void setFidMention(int fidMention) {
        this.fidMention = fidMention;
    }

    public void setFidResponsable(int fidResponsable) {
        this.fidResponsable = fidResponsable;
    }

    public void setFidTypeDiplome(int fidTypeDiplome) {
        this.fidTypeDiplome = fidTypeDiplome;
    }
    
    public String afficherDiplome(int parentID){
        String responsable =  "";
        if(this.getPrenomResponsable() != null){
            responsable = " (responsable : "+this.getPrenomResponsable()+" "+this.getNomResponsable()+")";
        }
        String resultat = "<li id=\"DIPLOME"+this.getId()+"\" class=\"fermer\"><a href=\"#\" class=\"arbre\"  onclick=\"deroulerElement('"+this.getId()+"', '"+this.getType().getLabel()+"', '"+parentID+"'); return false;\"><img class=\"derouler\" src=\"images/derouler.jpg\" alt=\"dérouler les informations\" /> Diplôme : "+this.getLibelleComplet()+responsable+"</a></li>";              
        return resultat;
    }
    public String afficherDiplomeNotComplete(int parentID){
        String responsable =  "";
        if(this.getPrenomResponsable() != null){
            responsable = " (responsable : "+this.getPrenomResponsable()+" "+this.getNomResponsable()+")";
        }
        String resultat = "<li id=\"DIPLOME"+this.getId()+"\" class=\"ouvert rechercheDip\"><a href=\"#\" class=\"arbre\"  onclick=\"deroulerElement('"+this.getId()+"', '"+this.getType().getLabel()+"', '"+parentID+"'); return false;\"><img class=\"derouler\" src=\"images/enrouler.jpg\" alt=\"dérouler les informations\" /> Diplôme : "+this.getLibelleComplet()+responsable+"</a>";              
        return resultat;
    }
    
    
    
}
